﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="edit_guest.aspx.cs" Inherits="edit_guest" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div align="center">
    <asp:MultiView ID="MultiView1" runat="server" activeViewIndex="0">


        <asp:View ID="View1" runat="server">
        <br /><br /><br />
    <img src="Image/edit-guest.png" alt=""/><br /><br />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="GUEST_ID" DataSourceID="orclDataSource5" ForeColor="#FFCC66" BorderColor="#4A1106" 
                AllowPaging="True" AllowSorting="True" Width="780px" 
                onselectedindexchanged="GridView1_SelectedIndexChanged" 
                HorizontalAlign="Center" SelectedIndex="0">
            <Columns>
                <asp:CommandField ShowSelectButton="True">
                    <HeaderStyle BackColor="#4A1106" />
                </asp:CommandField>
                <asp:BoundField DataField="GUEST_ID" HeaderText="GUEST_ID" ReadOnly="True" 
                    SortExpression="GUEST_ID" />
                <asp:BoundField DataField="PRENAME" HeaderText="PRENAME" 
                    SortExpression="PRENAME" >
                </asp:BoundField>
                <asp:BoundField DataField="GUEST_FNAME" HeaderText="GUEST_FNAME" 
                    SortExpression="GUEST_FNAME" >
                </asp:BoundField>
                <asp:BoundField DataField="GUEST_LNAME" HeaderText="GUEST_LNAME" 
                    SortExpression="GUEST_LNAME" >
                </asp:BoundField>
                <asp:BoundField DataField="ADDRESS" HeaderText="ADDRESS" 
                    SortExpression="ADDRESS" >
                </asp:BoundField>
                <asp:BoundField DataField="GUEST_TYPE_ID" HeaderText="GUEST_TYPE_ID" 
                    SortExpression="GUEST_TYPE_ID" >
                </asp:BoundField>
                <asp:BoundField DataField="GUEST_TEL" HeaderText="GUEST_TEL" 
                    SortExpression="GUEST_TEL" />
            </Columns>
            <HeaderStyle BackColor="#993300" />
            <PagerStyle HorizontalAlign="Center" />
            <RowStyle HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#CC9900" />
        </asp:GridView>
    
    
        
            
            <asp:SqlDataSource ID="orclDataSource5" runat="server" 
                ConnectionString="<%$ ConnectionStrings:ConnectionString16 %>" 
                ProviderName="<%$ ConnectionStrings:ConnectionString16.ProviderName %>" 
                SelectCommand="SELECT PRENAMES.PRENAME, GUESTS.GUEST_ID, GUESTS.GUEST_FNAME, GUESTS.GUEST_LNAME, GUESTS.ADDRESS, GUESTS.GUEST_TYPE_ID, GUESTS.GUEST_TEL FROM GUESTS INNER JOIN PRENAMES ON GUESTS.PRENAME_ID = PRENAMES.PRENAME_ID">
            </asp:SqlDataSource>
    
    
        
            
        <asp:Button ID="Button1" runat="server" Text="EDIT" Height="25" Width="85" 
                BackColor="#FFCC66" onclick="Edit_Click" BorderColor="#FF9966" />&nbsp;&nbsp;
            <asp:Button ID="Button5" runat="server" BackColor="#FFCC66" 
                BorderColor="#FF9966" Height="25px" onclick="Back_Click" Text="&lt;&lt; Back" 
                Width="85px" />
            <br /><br />
                <asp:Label ID="Label5" runat="server" ForeColor="#FFCC66"></asp:Label><br />
    
        </asp:View>



        <asp:View ID="View2" runat="server">
            
    <img src="Image/edit-guest.png" alt=""/><br />

    <table>
        <tr><td style="color: #FFCC66">GUEST ID : </td>
        <td><asp:Label ID="Label3" runat="server" ForeColor="#FFCC66"></asp:Label>&nbsp;&nbsp;&nbsp;<asp:Label ID="Label2" runat="server" Text=""></asp:Label></td></tr>
        <tr>
            
            <td style="color: #FFCC66">PRENAME : </td>
            <td>
                <asp:DropDownList ID="DropDownList1" runat="server" 
                    DataSourceID="orclDataSource4" DataTextField="PRENAME" 
                    DataValueField="PRENAME_ID" BackColor="#FFCC66" Width="190px">
                </asp:DropDownList>
                <asp:SqlDataSource ID="orclDataSource4" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:ConnectionString4 %>" 
                    ProviderName="<%$ ConnectionStrings:ConnectionString4.ProviderName %>" 
                    SelectCommand="SELECT PRENAME_ID, PRENAME FROM PRENAMES">
                </asp:SqlDataSource>
                <asp:Label ID="Label4" runat="server" Text=""></asp:Label>
            </td>
        </tr>

        <tr>
            <td style="color: #FFCC66">FRISTNAME : </td>
            <td>
                <asp:TextBox ID="TextBox1" runat="server" BackColor="#FFCC66" Width="190px" 
                    BorderColor="#FF9966"></asp:TextBox></td>
        </tr>

        <tr>
            <td style="color: #FFCC66">LASTNAME : </td>
            <td>
                <asp:TextBox ID="TextBox2" runat="server" BackColor="#FFCC66" Width="190px" 
                    BorderColor="#FF9966"></asp:TextBox></td>
        </tr>

        <tr>
            <td style="color: #FFCC66">ADDRESS : </td>
            <td>
                <asp:TextBox ID="TextBox3" runat="server" BackColor="#FFCC66" Width="190px" 
                    TextMode ="SingleLine" BorderColor="#FF9966"></asp:TextBox></td>
        </tr>

        <tr>
            <td style="color: #FFCC66">TELEPHONE No. : </td>
            <td>
                <asp:TextBox ID="TextBox4" runat="server" BackColor="#FFCC66" Width="190px" 
                    BorderColor="#FF9966"></asp:TextBox></td>
        </tr>

        <!--<tr>
            <td></td>
            <td></td>
        </tr>

         <tr>
            <td></td>
            <td></td>
        </tr>-->

        <tr>
            <td></td>
            <td>
                <asp:Button ID="Button2" runat="server" Text="SAVE" BackColor="#FFCC66" 
                    Height="25px" Width="85px" BorderColor="#FF9966" onclick="Save_Click" />&nbsp;&nbsp;&nbsp; 
                <asp:Button ID="Button3"
                    runat="server" Text="Cancel" BackColor="#FFCC66" Height="25px" 
                    Width="85px" BorderColor="#FF9966" /></td>
        </tr>

        <tr>
            <td></td>
            <td><asp:Label ID="Label1" runat="server" ForeColor="#FFCC66"></asp:Label></td>
        </tr>

        <tr>
            <td></td>
            <td>
                <asp:Button ID="Button4" runat="server" Text="<< Back" BackColor="#FFCC66" 
                    Height="25px" Width="85px" BorderColor="#FF9966" onclick="Back_Click" /></td>
        </tr>
        
    </table>



        </asp:View>



    </asp:MultiView>
</div>

</asp:Content>

